package com.tensquare.recruit.service;

import com.tensquare.recruit.dao.EnterpriseDao;
import com.tensquare.recruit.pojo.Enterprise;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Macross
 * @Type EnterpriseService.java
 * @Desc 企业信息Service服务类
 * @date 2019/12/17 15:42
 */
@Service
public class EnterpriseService {

    @Autowired
    private EnterpriseDao enterpriseDao;

    /**
     * 查找热门企业列表
     * @return
     */
    public List<Enterprise> getHotList() {
        //查找并返回热门企业列表
        return enterpriseDao.findByIsHot("1");
    }
}
